<!DOCTYPE html>
<html>
  <head>
    <title>ImgDetect - DeepDetect Image Classifier</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/css/select2.min.css" rel="stylesheet" />
    <link href="./css/jumbotron-narrow.css" rel="stylesheet">
  </head>
  <body>
    <div class="container">

      <div class="container">
        <div class="header clearfix">
          <h3 class="text-muted">ImgDetect</h3>
        </div>

        <div class="jumbotron">
          <h1>Image Classifier</h1>
          <p class="lead">Demo of <a href="http://deepdetect.com" target="_blank">DeepDetect</a> server with an image classification service based on a deep neural network pre-trained on a subset of Imagenet (ILSVRC12). The classification service will distinguish among 1000 different image tags, from 'ambulance' to 'paddlock' and more!</p>

          <p id='serviceForm' class='bg-info'>
          <span>Loading services...</span>
          <select id="service_select" class='hidden'><select/>
          </p>
          <p class='hidden' id='uploadForm'>
          <label for="url">Image URL : </label> <input type="text" id="url"/><br>
          <a id="urlSubmit" class="btn btn-lg btn-success" href="#" role="button">Classify <img src="./images/loading.gif" class="loading hidden"></a>
          </p>
        </div>

        <div id="submitAlert" class="hidden fade in alert alert-danger" role="alert">
          <b>Error!</b> <span class='error'></span>
        </div>

        <div class="row marketing">
          <div class="col-lg-12">
            <div class="row text-center">
              <div class="col-lg-4">
                <h4>Images</h4>
              </div>
              <div class="col-lg-8">
                <h4>Predictions</h4>
              </div>
            </div>
            <hr>
          </div>
        </div>

        <div class="row marketing">
          <div class="col-lg-12" id="imageList">
          </div>
        </div>

        <div class="row hidden" id="emptyImage">
          <div class="col-lg-4">
            <img title="" src="" class="img-responsive">
          </div>
          <div class="col-lg-8 predictions"></div>
        </div>

        <footer class="footer">
          <p>Powered with <a href="http://deepdetect.com" target="_blank">DeepDetect</a> - <a href="https://github.com/beniz/deepdetect" target="_blank">DeepDetect Github</a></p>
        </footer>

      </div> <!-- /container -->

    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.2/js/select2.min.js"></script>
    <script src="./js/main.js"></script>
  </body>
</html>
